Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "dropdown">

With this node you can add a dropdown to an existing dashboard or a new one created by the node to select numbers in an interval.

Configuration

dashboard string
Dashboard title to which the dropdown will be added
widget string
Title that will have the widget containing the dropdown.

Inputs

The node accepts in input JSON objects shaped as follows:
{ "options": [  
    { "label": "Opzione 1", "value": "1"  } 
    { "label": "Opzione 2", "value": "2"  } 
  ], 
  "selected": "2"  
}

They are meant to be sent at regime. Both are options and valueSelected are optional. The options are intended for editing the value of already existing labels, defined in the initial configuration of the node. Nothing more than that. The valueSelected is intended for forcing the selection of the writing associated with the given value, the widget side.

Outputs

The node produces in output the payload of the received message (the hidden value associated with the writing that the user has clicked on the widget).